   <link rel="stylesheet" href="<?=base_url();?>css/general.css">
  <script language="javascript">
	function goback(titleid){
		document.forms[0].action='<?=site_url("job_management/goto_duty_view")?>/'+ titleid;
		document.forms[0].submit();
	}
	function saveupdate(titleid){
		document.forms[0].action='<?=site_url("job_management/save_update_duty")?>/'+ titleid;
		document.forms[0].submit();
	}
</script>

	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Update Duty</div>
        <div class="dd_view">
        <form action="" method="post">
   			<table width="420" border="0" align="center" cellpadding="0" cellspacing="0" id="addUser">
              <tr>
                <td width="100">&nbsp;</td>
                <td width="233">&nbsp;</td>
                <td width="87">&nbsp;</td>
              </tr>
              <tr>
                <td>Title:</td>
                <td><div><?=htmlspecialchars($titledata['title_desc']);?> <?php $titleid=$titledata['title_id'];?></div>
                </td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Duty ID:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtdutyid" name="txtdutyid" class="textbox" value="<?=htmlspecialchars($duty['duty_id']);?>" readonly="readonly" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Duty Description:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtdutydesc" name="txtdutydesc" class="textbox" maxlength="255" value="<?=htmlspecialchars($duty['duty_desc']);?>" /></div></td>
                <td>&nbsp;</td>
              </tr>
             <tr>
                <td>&nbsp;</td>
                <td>
                <font color="#FF0000"><?php echo $error_message;?></font><br><br>
                <input type="button" name="btnback" value="Back" class="button_back_end" onclick="goback('<?=$titleid;?>')" />
           		<input type="button" name="btnsave" value="Save" class="button_back_end" onclick="saveupdate('<?=$titleid;?>')" />
            	
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>
        	
        </form>
		</div>
        
    </div> 

</div>

